<?php
/**
 * Author: Administrator
 * Date: 2022/7/18 1:33
 */

namespace DesignPatterns\Structural\Bridge;


class Car extends Vehicle
{
    public function __construct($producer, $assemble)
    {
        parent::__construct($producer, $assemble);
    }

    public function manufacture()
    {
        print('Car');
        $this->produceWorkshop->work();
        $this->assembleWorkshop->work();
    }
}